var SharedData = {};
function loadSharedData()
{
	var services = [];
	services.push(["/popupService",{doClass : "loadGeneral"},function(data,args) { SharedData.General = JSON.parse(data); },null]);
	services.push(["/popupService",{ doClass : "loadResvStatus" },function(data,args) { SharedData.ResvStatus = JSON.parse(data); },null]);
	services.push(["/roomtypeService",{func : "getAllRoomtype"},function(data,args) { SharedData.RoomType = JSON.parse(data); },null]);
	services.push(["/popupService",{ doClass : "loadCleaningStatus"},function(data,args) { SharedData.CleaningStatus = JSON.parse(data); },null]);
	services.push(["/roomService",{ func: "getShowRooms"},function(data,args) { SharedData.Room = JSON.parse(data); },null]);
	services.push(["/blockService",{ func : "getAllBlock"},function(data,args) { SharedData.Block = JSON.parse(data); },null]);
	services.push(["/floorService",{ func : "getAllFloor"},function(data,args) { SharedData.Floor = JSON.parse(data); },null]);
	arrayservice(services,Display,null);
}

function checkSessionAdmin(objArray){
	if(objArray.result==false){
		var buttons = [{ title:"OK" , callback: function(thisdialog,args){window.location.assign("/../logout.jsp");}}];
   		customDialog(Warning,ForceLogout,null,buttons,null);
   		return true;
	}
}